package com.ibeeking.found.cop.service.common.dos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @ClassName  CopDepartmentEmployeeDO
 * @Description
 * @Author ibeeking
 * @Date 2021-01-15 10:44
 **/
@ToString(callSuper = true)
@Data
@TableName("cop_department_employee")
public class CopDepartmentEmployeeDO implements Serializable {
    private static final long serialVersionUID = -1L;

    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 部门id
     */
    @TableField(value = "department_id")
    private Long departmentId;

    /**
     * 成员id
     */
    @TableField(value = "employee_id")
    private Long employeeId;

    /**
     * 是否是部门负责人，1=是；0=否
     */
    @TableField(value = "as_leader")
    private Integer asLeader;

}
